//
//  ImageHelper.h
//  ImageTest
//
//  Created by wei 王 on 11-11-12.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@interface ImageHelper : NSObject

+(UIImage *)imageWithName:(NSString *)imgName;
+ (UIImage*)newImageNotCached:(NSString *)filename;
+ (UIImage *)scaleToSize:(UIImage *)img size:(CGSize)size;
+ (UIImage *)scaleToSizeWithImageName:(NSString *)imageName size:(CGSize)size;
+(UIImage *)createImageFromLayer:(CALayer *)layer;
+(UIImage *)createImageFromView:(UIView *)v;
+(UIImage *)createImageFromView:(UIView *)v withRect:(CGRect)rect;
@end
